#pragma once
#include <iostream>
#include <pthread.h>
#include <unistd.h>

struct Task
{
    int _num;
    Task(int num)
        : _num(num)
    {
    }
    void Run()
    {
        std::cout << "[" << _num << "] thread " << pthread_self() << " is doing a task..." << std::endl;
        sleep(1);
    }
};